import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/home/advertise/list',
    method:'get',
    params:params
  })
}
export function updateStatus(id,params) {
  return request({
    url:'/home/advertise/update/status/'+id,
    method:'post',
    params:params
  })
}
export function deleteHomeAdvertise(data) {
  return request({
    url:'/home/advertise/delete',
    method:'post',
    data:data
  })
}
export function createHomeAdvertise(data) {
  return request({
    url:'/home/advertise/create',
    method:'post',
    data:data
  })
}
export function getHomeAdvertise(id) {
  return request({
    url:'/home/advertise/'+id,
    method:'get'
  })
}

export function updateHomeAdvertise(id,data) {
  return request({
    url:'/home/advertise/update/'+id,
    method:'post',
    data:data
  })
}


// 视频接口

export function videoList(params) {
  return request({
    url:'/video/list',
    method:'get',
    params:params
  })
}

export function createHomevideo(data) {
  return request({
    url:'/video/add',
    method:'post',
    data:data
  })
}

export function deleteHomevideo(data) {
  return request({
    url:'/video/delete/',
    method:'POST',
    data:data
  })
}

export function getHomevideo(id) {
  return request({
    url:'/video/findOne/'+id,
    method:'get',
  })
}

export function updateHomevideo(data) {
  return request({
    url:'/video/update/',
    method:'post',
    data:data
  })
}

// 海报
export function posterList(params) {
  return request({
    url:'/poster/findAll',
    method:'get',
    params:params
  })
}

export function createHomeposter(data) {
  return request({
    url:'/poster/add',
    method:'post',
    data:data
  })
}

export function deleteHomeposter(data) {
  return request({
    url:'/poster/delete/' + data,
    method:'POST',
    data:{}
  })
}


// 直播管理
export function broadcastList(params) {
  return request({
    url:'/live/findPage',
    method:'get',
    params:params
  })
}

export function updateStickList(params) {
  return request({
    url:'/live/updateStick',
    method:'POST',
    params:params
  })
}


//分销

export function distributionList(params) {
  return request({
    url:'/ratio/findAll',
    method:'get',
    params:params
  })
}


export function updatadisList(data) {
  return request({
    url:'/ratio/update',
    method:'post',
    data:data
  })
}



export function savedisList(data) {
  return request({
    url:'/ratio/save',
    method:'post',
    data:data
  })
}

// 推广


export function extensionList(params) {
  return request({
    url:'/generalize/findAll',
    method:'get',
    params:params
  })
}


export function updataextension(data) {
  return request({
    url:'/generalize/update',
    method:'post',
    data:data
  })
}



export function saveextension(data) {
  return request({
    url:'/generalize/save',
    method:'post',
    data:data
  })
}


//RealtyLoupanController : 楼盘管理

export function floorList(params) {
  return request({
    url:'/loupan/list',
    method:'get',
    params:params
  })
}

export function getfloor(data) {
  return request({
    url:'/loupan/findOne/' + data,
    method:'get',
    data:{}
  })
}


export function updafloor(data) {
  return request({
    url:'/loupan/update',
    method:'post',
    data:data
  })
}

export function addfloor(data) {
  return request({
    url:'/loupan/add',
    method:'post',
    data:data
  })
}

export function deletefloor(data) {
  return request({
    url:'/loupan/delete',
    method:'POST',
    data:data
  })
}

//RealtyCharmberController : 楼盘户型管理 charmber

export function charmberList(params) {
  return request({
    url:'/charmber/list',
    method:'get',
    params:params
  })
}

export function getcharmber(data) {
  return request({
    url:'/charmber/findOne/' + data,
    method:'get',
    data:{}
  })
}


export function updacharmber(data) {
  return request({
    url:'/charmber/update',
    method:'post',
    data:data
  })
}

export function addcharmber(data) {
  return request({
    url:'/charmber/add',
    method:'post',
    data:data
  })
}

export function deletecharmber(data) {
  return request({
    url:'/charmber/delete',
    method:'POST',
    data:data
  })
}


//RealtyCharmberController : 楼盘户型风格管理 style

export function styleList(params) {
  return request({
    url:'/style/list',
    method:'get',
    params:params
  })
}

export function getstyle(data) {
  return request({
    url:'/style/findOne/' + data,
    method:'get',
    data:{}
  })
}


export function updastyle(data) {
  return request({
    url:'/style/update',
    method:'post',
    data:data
  })
}

export function addstyle(data) {
  return request({
    url:'/style/add',
    method:'post',
    data:data
  })
}

export function deletestyle(data) {
  return request({
    url:'/style/delete',
    method:'POST',
    data:data
  })
}


// RealtySoftoutfitComboController : 软装套餐管理POST /combo/add


export function comboList(params) {
  return request({
    url:'/combo/list',
    method:'get',
    params:params
  })
}

export function getcombo(data) {
  return request({
    url:'/combo/findOne/' + data,
    method:'get',
    data:{}
  })
}


export function updacombo(data) {
  return request({
    url:'/combo/update',
    method:'post',
    data:data
  })
}

export function addcombo(data) {
  return request({
    url:'/combo/add',
    method:'post',
    data:data
  })
}

export function deletecombo(data) {
  return request({
    url:'/combo/delete',
    method:'POST',
    data:data
  })
}


// RealtySoftoutfitComboProductController : 软装套餐商品管理POST /comboProduct/add

export function comboProductList(params) {
  return request({
    url:'/comboProduct/list',
    method:'get',
    params:params
  })
}

export function addcomboProduct(data) {
  return request({
    url:'/comboProduct/add',
    method:'post',
    data:data
  })
}

export function deletecomboProduct(data) {
  return request({
    url:'/comboProduct/delete',
    method:'POST',
    data:data
  })
}


// 套餐推荐
